//
//  HRZLeaveMessageCell.m
//  EMarket
//
//  Created by 石头 on 2018/5/21.
//  Copyright © 2018 好日子. All rights reserved.
//

#import "HRZLeaveMessageCell.h"

@interface HRZLeaveMessageCell()<UITextFieldDelegate>

@property (weak, nonatomic) IBOutlet UITextField *messageTextFile;

@end

@implementation HRZLeaveMessageCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string {
    if (self.LeaveMessageBlock) {
        self.LeaveMessageBlock(_messageTextFile.text);
    }
    return YES;
}

@end
